<?php

namespace Biz\validate;


class ShopInvoiceInformation extends \Doraemon\pockets\validate\Base
{


    public static function rules()
    {
        return [
            ['type', 'required', null, '请选择开票类型', ['addPersonal', 'addSmall', 'addGeneral']],
            ['taxpayer_identification_number', 'required', null, '请填写纳税人识别号', ['addSmall', 'addGeneral']],
            ['bank_name', 'required', null, '请填写银行', ['addGeneral']],
            ['bank_no', 'required', null, '请填写银行卡号', ['addGeneral']],
            ['company_address', 'required', null, '请填写公司地址', ['addGeneral']],
            ['company_address', 'length', '1,100', '公司地址最多输入100个汉字', ['addGeneral']],
            ['company_phone', 'required', null, '请填写公司电话', ['addGeneral']],

            ['send_address_code', 'required', null, '请选择邮寄地址', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
            ['send_address', 'required', null, '请填写邮寄地址', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
            ['send_address', 'length', '1,50', '邮寄地址最多输入50个汉字', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
            ['consignee_name', 'required', null, '请填写收件人', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
            ['consignee_name', 'length', '1,20', '收件人最多输入20个汉字', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
            ['consignee_phone', 'required', null, '请填写收件人联系方式', ['addPersonal', 'addSmall', 'addGeneral', 'changeSend']],
        ];

    }

}